{% extends 'AdminsBundle:base:main.content.submit.div.auto.html.twig' %}

{% block main %}
    {{ form_widget(show) }}
    <dl>
        <dt>条件设置</dt>
        <dd>
            {% for attr in attrAndVal %}
            <div class="margin-top-10">
                <span>{{ attr.name }}：</span><br/>
                <div class="rule-multi-checkbox">
                    <span id="cblItem">
                        {% for val in attr.sons %}
                        <label>{{ val.name }}<input type="checkbox" name="attr[{{ attr.id }}][]" value="{{ val.id }}"/></label>
                        {% endfor %}
                    </span>
                </div>
            </div>
            {% endfor %}

        </dd>
    </dl>
{% endblock %}
{% block script %}
    {% include 'AdminsBundle:base:inc.js.pic.upload.twig' %}
    {% include 'AdminsBundle:base:inc.js.article.twig' %}
    {% include 'AdminsBundle:base:inc.js.form.valid.twig' %}
    {% include 'AdminsBundle:base:inc.js.date.picker.twig' %}
{% endblock %}

